﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;


namespace WebApplication1
{
    public class CustomerClassModel
    {  
        public string cCCCode { get; set; }

        public string cCCName { get; set; }


        public int iCCGrade { get; set; }


        public string Mcccode { get; set; }

        

    }


    public class CustomerClassModelResult
    {
        public List<string> cCCCode { get; set; }
        public List<string> cCCName { get; set; }

        public List<int> iCCGrade { get; set; }

        public List<string> Mcccode { get; set; }

    }

    public class CustomerClassConverter
    {
        public CustomerClassModelResult Convert(List<CustomerClassModel> items)
        {
            return new CustomerClassModelResult
            {
                cCCCode = items.Select(item => item.cCCCode).ToList(),
                cCCName = items.Select(item => item.cCCName).ToList(),
                iCCGrade = items.Select(item => item.iCCGrade).ToList(),
                Mcccode = items.Select(item => item.Mcccode).ToList(),

            };
        }
    }
} 
